<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">平台应用</label>
            <div class="layui-input-block">
                <select name="miniapp_id" lay-verify="required" lay-filter="miniappIdFilter">
                    <option value=''></option>
                    {foreach $getMiniappList as $k=>$v}
                    <option value='{$k}' >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">租户id</label>
            <div class="layui-input-block">
                <input type="text" name="member_id" class="layui-input" lay-verify="required" placeholder="请输入租户id" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租户应用</label>
            <div class="layui-input-block">
                <select name="member_miniapp_id" lay-verify="required" id="memberMiniappId" lay-search="">
                <option value=''></option>
            </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">小程序模板</label>
            <div class="layui-input-block">
                <select name="template_id" lay-verify="required" lay-filter="templateFilter" placeholder="请选择要上架或升级的第三方小程序代码模板">
                    <option value=''></option>
                    {foreach $getThirdTemplate as $k=>$v}
                    <option value='{$v.template_id}' >模板ID:【{$v.template_id}】-版本号：【V{$v.user_version}】-模板描述：【{$v.user_desc}】</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">程序版本号</label>
            <div class="layui-input-block">
                <input type="text" name="version" id="version" class="layui-input" lay-verify="required" placeholder="请输入版本号,如1.0.0" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">模板演示图</label>
            <div class="layui-input-block layuimini-upload">
                <input name="images" class="layui-input layui-col-xs6"   placeholder="请上传模板图" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="images" data-upload-number="more" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image" data-upload-sign=","><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_images" data-upload-select="images" data-upload-number="more" data-upload-mimetype="image/*" data-upload-sign=","><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">自定义描述</label>
            <div class="layui-input-block">
                <input type="text" name="desc" class="layui-input"  placeholder="请输入描述" value="">
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>